get what's coming to one
Receive what one deserves or is due, especially something unpleasant, such as a punishment or rebuke. For example,
When they suspended Steve for cheating, he was only getting what was coming to him
.